<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('选择承办单位')"/>
    <link th:href="@{/ajax/libs/bootstrap-tagsinput/tagsinput.css}" rel="stylesheet">
    <link th:href="@{/ajax/libs/jQuery-ui/jquery-ui.css}" rel="stylesheet">
    <script type="text/javascript">
        function run(){
            document.getElementById("clickMenu1").click();
        }
    </script>
</head>

<body onload="run()" style="background-color: #F4F6FA">
<div class="main-content" style="margin: 0;padding: 0">

    <form id="form-user-add" class="form-horizontal" style="background-color: #F4F6FA">
        <div class="col-sm-12 entering-page" style="display: flex">
            <div class="col-sm-9" style="margin: 5px;">
                <ul class="nav nav-tabs">
                    <li><a data-toggle="tab" id="clickMenu1" href="#menu1">市级部门</a></li>
                    <li><a data-toggle="tab" href="#menu2">区(市)县</a></li>
                </ul>
                <div class="tab-content">
                    <div id="menu1" class="tab-pane fade deptTransfer-content">

                    </div>
                    <div id="menu2" class="tab-pane fade deptTransfer-content">

                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="col-sm-12" style="margin-top: 45px">
                    <div class="input-group">
                        <input type="text" class="form-control" id="tags" onkeydown="onKeyDown(event)"
                               style="border-radius: 5px 0 0 5px;"/>
                        <span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>


<script th:src="@{/ajax/libs/layui/laydate.js}"></script>
<th:block th:include="include :: footer"/>
<script th:src="@{/ajax/libs/bootstrap-tagsinput/tagsinput.min.js}"></script>
<script th:src="@{/ajax/libs/jQuery-ui/jquery-ui.js}"></script>
    <script th:src="@{/js/deptTransfer.js}"></script>
<script>
    function DirectDept(sdeptNo,sName,dNo,dName){
        // parent[3].SonDirectSingle(sdeptNo,sName,dNo,dName);
        // var topWindow = $(window.parent.document);
        // var parentDialog = $('#deptdialog', topWindow).find('iframe')[0].contentWindow;
        var parentDialog = $(top.window['deptdialog']).find('iframe')[0].contentWindow;
        parentDialog.SonDirectSingle(sdeptNo,sName,dNo,dName);
        $.modal.close();
    }

    function SelectDept(dNo,dName){
        // parent[3].SonBackSingle(dNo,dName);
        var parentDialog = $(top.window['deptdialog']).find('iframe')[0].contentWindow;
        parentDialog.SonBackSingle(dNo,dName);
        $.modal.close();
    }
</script>
</body>
</html>

